package avicit.bdp.dcs.precheck.service;

import avicit.bdp.common.base.BaseService;
import avicit.bdp.dcs.precheck.dao.JobPrecheckResultDao;
import avicit.bdp.dcs.precheck.dto.DcsJobPrecheckDto;
import avicit.bdp.dcs.precheck.dto.JobPrecheckResultDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @金航数码科技有限责任公司
 * @作者：liyb
 * @邮箱：liyb@avic-digital.com
 * @创建时间：2020-08-05 14:32
 * @类说明：
 * @修改记录：
 */
@Service
@Transactional
public class JobPrecheckResultService extends BaseService<JobPrecheckResultDao, JobPrecheckResultDTO> {

    @Autowired
    private JobPrecheckResultDao jobPrecheckResultDao;

    public List<DcsJobPrecheckDto> getPrecheckListByJobId(String jobId) {
        return jobPrecheckResultDao.getPrecheckListByJobId(jobId);
    }

    public void deleteByJobId(String jobId) {
        jobPrecheckResultDao.deleteByJobId(jobId);
    }

}